$currentPath = [Environment]::GetEnvironmentVariable("PATH", "Machine")
$cachePath = "C:\path\to\your\cache" # 替换为你的 cache 目录的实际路径
$newPath = $currentPath + ";" + $cachePath
[Environment]::SetEnvironmentVariable("PATH", $newPath, "Machine")